<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

<div id="panel-satisfaction-inpatient-detail-query" >
  	
	<div class="well well-small" style="margin-left: 5px;margin-top: 5px">		
		<p>
			<span class="badge">提示</span>
			<strong><font color="red">鼠标单击行中任意位置，可以查看评价详情 </font></strong>
		</p>
	</div>
	<div class="condition easyui-panel" data-options="closed:true,openAnimation:'slide',closeAnimation:'slide'">
		<form class="condition-form">
			<table> 	
				<tr>
					<th>科室名称</th>
					<td><input name="evl_org_name" id="evl_org_name" type="text"  class="easyui-textbox easyui-validatebox" style="width:150px"/></td>
					<th>评价时间起始</th>
					<td><input name="evaluate_time_start" id="evaluate_time_start" class="easyui-datebox easyui-validatebox" style="width:150px" data-options="required:true"/></td>
					<th>评价时间截止</th>
					<td><input id="evaluate_time_end" name="evaluate_time_end" class="easyui-datebox easyui-validatebox" style="width:150px"/></td>												
				</tr>
				
			</table>
			<input id="evaluate_type" name="evaluate_type" type="hidden" value="2"/>
		</form>
	</div>
    <div class="tb-list" style="padding:2px 0">
		<table cellpadding="0" cellspacing="0"> 
			<tr>
				<td style="padding-left:2px">
					<input class="searchbox" type="text"/>
				</td>
				<td style="padding-left:2px">
					<a href="javascript:void(0);" class="easyui-linkbutton conditon-search function-btn"  plain="true" >查询条件</a>
				</td>
				<td style="padding-left:2px">
					<a href="javascript:void(0);" class="easyui-linkbutton conditon-search function-btn" iconCls="icon-search" plain="true" >执行查询</a>
				</td>
			</tr>
		</table>
	</div>
		<table class="easyui-datagrid dg-list"  
		data-options="rownumbers:true,
		animate: true,							
		striped:true,
		border:true,
		//singleSelect:false,
		idField: 'id',					
		fitColumns: true,
		checkOnSelect:true,
		selectOnCheck:true,
		width : 'auto'">
		
		<thead>						
			<tr>				
				<th field="patient_no" width="60" align="center">住院号</th>
				<th field="patient_name" width="40" align="center">患者姓名</th>
				<th field="1" width="30" align="center">1</th>
				<th field="2" width="30" align="center" >2</th>
				<th field="3" width="30" align="center" >3</th>
				<th field="4" width="30" align="center" >4</th>				
				<th field="5" width="30" align="center">5</th>		
				<th field="6" width="30" align="center" >6</th>	
				<th field="7" width="30" align="center">7</th>
				<th field="8" width="30" align="center" >8</th>
				<th field="9" width="30" align="center" >9</th>
				<th field="10" width="30" align="center" >10</th>				
				<th field="11" width="30" align="center">11</th>		
				<th field="12" width="30" align="center" >12</th>
				<th field="score_count" width="30" align="center" data-options="
					styler: function(value,row,index){
						var standard
						if(row &&　row.score_standard){
							standard = row.score_standard
						}else{
							standard = 60
						}
						if (value){
							if(value < standard){
								return 'color:red;';							
							}else{
								return 'color:green;';
							}
						}else{
							return 'color:green;';
						}
					}
				">合计</th>
				<th field="score_standard" width="40" align="center" >满分</th>										
			</tr>                    
		</thead>
		
	</table>
</div>
<script>
requirejs(['listPageModule','satisfactionWindow','domReady!'],function(listPage,satisfactionWindow,doc){
	
	listPage.init({doc:doc,
		rootId:'panel-satisfaction-inpatient-detail-query',
		subSystemCode:'satisfaction',
		moduleCode:'satisEvaluateDeptDetail',	
		queryModule:'satisEvaluate',
		queryMethod:'getInpatientDetail'
	});
});	
</script>

